/**
 * qujiakang
 * WorkflowInsView.java 创建于 2007-7-4
 */
package org.jackysoft.entity;

import com.google.gson.annotations.Expose;

/**
 * @author qujiakang
 * 
 */
public class OsTaskItem implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5785026780650639483L;

	@Expose
	private long refid;

	private String title;
	@Expose
	private String refname;

	@Expose
	private String owner;
	@Expose
	private String startDate;
	@Expose
	private int state;
	@Expose
	private String starter;

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateLabel() {
		switch (this.getState()) {
		case WorkflowRunner.ACTIVATED:
			return "激活";
		case WorkflowRunner.COMPLETED:
			return "完成";
		case WorkflowRunner.CREATED:
			return "新建";
		case WorkflowRunner.KILLED:
			return "中断";
		case WorkflowRunner.SUSPENDED:
			return "挂起";
		case WorkflowRunner.UNKNOWN:
			return "未知";
		default:
			return "非法";
		}
	}

	
	

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getStarter() {
		return starter;
	}

	public void setStarter(String starter) {
		this.starter = starter;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public long getRefid() {
		return refid;
	}

	public void setRefid(long refid) {
		this.refid = refid;
	}

	public String getRefname() {
		return refname;
	}

	public void setRefname(String refname) {
		this.refname = refname;
	}

}
